<h3>Créer un appartement</h3>

<%= error_messages_for :appart %>

<% form_for(:appart, :url => apparts_path) do |f| %>
<table class="new_appart" rules="all">
 <tr>
  <td colapsan="2">&nbsp;</td>
 </tr>
 <tr>
  <td align="right"><b>Prix :</b></td>
  <td><%= f.text_field :prix, "size" => 3 %> €</td>
  </p>
 </tr>
 <tr>
  <td align="right"><b>Taille :</b></td>
  <td><%= f.text_field :taille , "size" => 2 %> m²</td>
  </p>
 </tr>
 <tr>
  <td align="right"><b>Ville : </b></td>
  <td><%= select("appart", "ville_id", @ville.collect {|p| [ p.ville, p.id ] }) %></td>
 </tr>
 <tr>
    <td colspan="2" align="center"><%= submit_tag "Create" %></td>
 </tr>
</table>
<% end %>
<%= link_to 'Retour', apparts_path %>